package com.hulk.service;

import java.util.Map;

import org.springframework.context.ApplicationContextException;

/**
 * 商品抽奖防超卖 抢购 秒杀
 * @author Administrator
 *
 */
public interface PanicbuyingService {

    /**
     * 查询摸金机会
     * @param userId
     * @return
     */
	Map<String, Object> findTouchGoldChance(Long userId,Long activityId);

	/**
	 * 摸金并返回结果
	 * @param userId
	 * @return
	 */
	Map<String, Object> touchGold(Long userId,Long activityId,int source) throws InterruptedException,ApplicationContextException,Exception ;

}
